home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / AIIGSIncludes / E16.Control < prev    next >
Encoding:
Text File  |  1993-06-15  |  6.1 KB  |  190 lines  |  [TEXT/MPS ]

  1. ; File:  E16.Control
  2. ;
  3. ;
  4. ; Copyright Apple Computer, Inc. 1986-93
  5. ; All Rights Reserved
  6. ;
  7. ;
  8. noConstraint EQU $0000  ; No constraint on movement.
  9. hAxisOnly EQU $0001  ; Horizontal axis only.
  10. vAxisOnly EQU $0002  ; Vertical axis only.
  11. simpRound EQU $0000  ; Simple button flag
  12. upFlag EQU $0001  ; Scroll bar flag. 
  13. boldButton EQU $0001  ; Bold round cornered outlined button.
  14. simpBRound EQU $0001  ; Simple button flag
  15. downFlag EQU $0002  ; Scroll bar flag.
  16. simpSquare EQU $0002  ; Simple button flag
  17. simpDropSquare EQU $0003  ; Simple button flag
  18. leftFlag EQU $0004  ; Scroll bar flag.
  19. rightFlag EQU $0008  ; Scroll bar flag.
  20. dirScroll EQU $0010  ; Scroll bar flag.
  21. horScroll EQU $0010  ; Scroll bar flag.
  22. family EQU $007F  ; Mask for radio button family number
  23. ctlInVis EQU $0080  ; invisible mask for any type of control 
  24. fCallWindowMgr EQU $0001  ; Control Template flag value
  25. fSubstituteText EQU $0002
  26. fSubTextType EQU $0001
  27. inListBox EQU $88
  28. fBlastText EQU $0004 ; static text control
  29. fTextCanDim EQU $0008 ; static text control
  30. fSquishText EQU $0010 ; static text control
  31. fNoTrackIcon EQU $0008 ; make Icon Button play dead
  32.  
  33. simpleProc EQU $00000000
  34. checkProc EQU $02000000
  35. radioProc EQU $04000000
  36. scrollProc EQU $06000000
  37. growProc EQU $08000000
  38. drawCtl EQU $0000  ; Draw control command.
  39. calcCRect EQU $0001  ; Compute drag RECT command.
  40. testCtl EQU $0002  ; Hit test command.
  41. initCtl EQU $0003  ; Initialize command.
  42. dispCtl EQU $0004  ; Dispose command.
  43. posCtl EQU $0005  ; Move indicator command.
  44. thumbCtl EQU $0006  ; Compute drag parameters command.
  45. dragCtl EQU $0007  ; Drag command.
  46. autoTrack EQU $0008  ; Action command.
  47. newValue EQU $0009  ; Set new value command.
  48. setParams EQU $000A  ; Set new parameters command.
  49. moveCtl EQU $000B  ; Move command.
  50. recSize EQU $000C  ; Return record size command.
  51. ctlHandleEvent EQU $000D  ; Handle a keystroke or menu selection
  52. ctlChangeTarget EQU $000E  ; Issued when control's target status has changed
  53. ctlChangeBounds EQU $000F  ; Issued when control's boundary rectangle has changed
  54. ctlWindChangeSize EQU $0010  ; Window has been grown or zoomed
  55. ctlHandleTab EQU $0011  ; Control has been tabbed to
  56. ctlNotifyMultiPart EQU $0012  ; A multipart control has been hidden, drawn or shown
  57. ctlWinStateChange EQU $0013  ; Window state has changed
  58. noHilite EQU $0000  ; Param to HiliteControl
  59. inactiveHilite EQU $00FF  ; Param to HiliteControl
  60. noPart EQU $0000
  61. simpleButton EQU $0002
  62. checkBox EQU $0003
  63. radioButton EQU $0004
  64. upArrow EQU $0005
  65. downArrow EQU $0006
  66. pageUp EQU $0007
  67. pageDown EQU $0008
  68. growBox EQU $000A
  69. thumb EQU $0081
  70.  
  71. ; moreFlags values
  72. fCtlTarget EQU $8000  ; is current target of typing commands
  73. fCtlCanBeTarget EQU $4000  ; can be made the target control
  74. fCtlWantEvent EQU $2000  ; control can be called view SendEventToCtl
  75. fCtlWantsEvent EQU $2000  ; control can be called view SendEventToCtl
  76. fCtlWantEvents EQU $2000  ; control can be called view SendEventToCtl
  77. fCtlWantsEvents EQU $2000  ; control can be called view SendEventToCtl
  78. fCtlProcRefNotPtr EQU $1000  ; set = ID of defproc, clear = pointer to defproc
  79. fCtlTellAboutSize EQU $0800  ; set if ctl needs notification when size of owning window changes
  80. fCtlIsMultiPart EQU $0400  ; set if ctl needs notification to be hidden
  81. fMenuDefIsText EQU $0004
  82. fDrawIconInResult EQU $0020
  83. fDrawPopDownIcon EQU $0080
  84.  
  85. colorDescriptor EQU $000C  ; indicates type of reference in colorRef
  86. styleDescriptor EQU $0003  ; indicates type of reference in styleRef
  87. titleIsPtr EQU $00
  88. titleIsHandle EQU $01
  89. titleIsResource EQU $02
  90. colorTableIsPtr EQU $00
  91. colorTableIsHandle EQU $04
  92. colorTableIsResource EQU $08
  93. ctlHideCtl EQU $12
  94. singlePtr EQU $0000
  95. singleHandle EQU $0001
  96. singleResource EQU $0002
  97. ptrToPtr EQU $0003
  98. ptrToHandle EQU $0004
  99. ptrToResource EQU $0005
  100. handleToPtr EQU $0006
  101. handleToHandle EQU $0007
  102. handleToResource EQU $0008
  103. resourceToResource EQU $0009
  104. simpleButtonControl EQU $80000000
  105. checkControl EQU $82000000
  106. radioControl EQU $84000000
  107. scrollBarControl EQU $86000000
  108. growControl EQU $88000000
  109. statTextControl EQU $81000000
  110. editLineControl EQU $83000000
  111. editTextControl EQU $85000000
  112. popUpControl EQU $87000000
  113. listControl EQU $89000000
  114. pictureControl EQU $8D000000
  115. iconButtonControl EQU $87FF0001
  116. thermometerControl EQU $87FF0002
  117. rectangleControl EQU $87FF0003
  118.  
  119. wmNotStartedUp EQU $1001  ; Window manager was not initialized
  120. cmNotInitialized EQU $1002  ; Control manager was not initialized
  121. noCtlInList EQU $1003  ; Control not in window list
  122. noCtlError EQU $1004  ; no controls in window
  123. noSuperCtlError EQU $1005  ; no super controls in window
  124. noCtlTargetError EQU $1006  ; no target super control
  125. notSuperCtlError EQU $1007  ; action can only be done on super control
  126. canNotBeTargetError EQU $1008  ; conrol cannot be made target
  127. noSuchIDError EQU $1009  ; specified ID cannot be found
  128. tooFewParmsError EQU $100A  ; not enough params specified
  129. noCtlToBeTargetError EQU $100B  ; NextCtl call, no ctl could be target
  130. noFrontWindowError EQU $100C  ; there is no front window
  131. selectedIcon EQU $0001
  132. openIcon EQU $0002
  133. offline EQU $0004
  134. fListString EQU $0001
  135. fListSelect EQU $0002
  136. fListScrollBar EQU $0004
  137. fRightJustifyResult EQU $0001
  138. fRightJustifyTitle EQU $0002
  139. fInWindowOnly EQU $0004
  140. fDontDrawResult EQU $0008
  141. fDontDrawTitle EQU $0010
  142. fDontHiliteTitle EQU $0020
  143. fType2PopUp EQU $0040
  144. ; offset constants for BarColors
  145. obarOutline EQU 0
  146. obarNorArrow EQU 2
  147. obarSelArrow EQU 4
  148. obarArrowBack EQU 6
  149. obarNorThumb EQU 8
  150. obarSelThumb EQU 10
  151. obarPageRgn EQU 12
  152. obarInactive EQU 14
  153. ; offset constants for BoxColors
  154. oboxReserved EQU 0
  155. oboxNor EQU 2
  156. oboxSel EQU 4
  157. oboxTitle EQU 6
  158. ; offset constants for BttnColors
  159. obttnOutline EQU 0
  160. obttnNorBack EQU 2
  161. obttnSelBack EQU 4
  162. obttnNorText EQU 6
  163. obttnSelText EQU 8
  164. ; offset constants for CtlRec
  165. octlNext EQU 0
  166. octlOwner EQU 4
  167. octlRect EQU 8
  168. octlFlag EQU 16
  169. octlHilite EQU 17
  170. octlValue EQU 18
  171. octlProc EQU 20
  172. octlAction EQU 24
  173. octlData EQU 28
  174. octlRefCon EQU 32
  175. octlColor EQU 36
  176. octlReserved EQU 40
  177. octlID EQU 56
  178. octlMoreFlags EQU 60
  179. octlVersion EQU 62
  180. ; offset constants for LimitBlk
  181. oboundRect EQU 0
  182. oslopRect EQU 8
  183. oaxisParam EQU 16
  184. odragPatt EQU 18
  185. ; offset constants for RadioColors
  186. oradReserved EQU 0
  187. oradNor EQU 2
  188. oradSel EQU 4
  189. oradTitle EQU 6
  190.